package components;

import com.uqbar.vainilla.colissions.CollisionDetector;

public class SquareShape extends Shape{
	
	public SquareShape(CollisionableComponent comp){
		super(comp);
	}

	public boolean collideWithRect(CollisionableComponent rect){
		return this.getComponent().rectRectCollide(this.getComponent(), rect);
		
	}
	public boolean collideWithCircle(CollisionableComponent circle){
		return this.getComponent().rectCircleCollide(circle, this.getComponent());
		
	}
	public boolean collisionNature(CollisionableComponent target){
		return target.collideWithRect(this.getComponent());
	}


}
